﻿
namespace ETHotfix
{
    public abstract class Single<T> where T : Single<T>, new()
    {
        private static T ins;

        public static T Ins
        {
            get
            {
                if (ins == null)
                {
                    ins = new T();
                    ins.ComponentInitialized();
                }
                return ins;
            }
        }

        protected virtual void ComponentInitialized()
        {

        }

    }

}
